<@html.doctype />
<html>
<@html.head>

<link rel="stylesheet" type="text/css" href="../includes/styles/skins/Green/layout/css/nth_apply.css" />
<link rel="stylesheet" type="text/css" href="../includes/styles/skins/Green/layout/css/nth_personal.css" />
<link rel="stylesheet" type="text/css" href="../includes/styles/skins/Green/layout/css/login.css" />


<script type="text/javascript">
$(function(){
		
         //文本框失去焦点后
	    $('#appForm :input').blur(function(){
			 var $parent = $(this).parent();
			 $parent.find(".formtips").remove();
			 //验证用户名
			 if( $(this).is('#expName') ){
					if( this.value=="" || this.value=="  " ||this.value.length < 2 ){
					    var errorMsg = '请输入至少2位的用户名.';
                        $parent.append('<span class="formtips onError">'+errorMsg+'</span>');
					}
			 }
			 //验证专业领域
			 if( $(this).is('#fieldSelect') ){
					if( this.value==0 ){
					    var errorMsg = '请选择专业领域.';
                        $parent.append('<span class="formtips onError">'+errorMsg+'</span>');
					}
			 }
			 //验证学历
			 if( $(this).is('#degreeSelect') ){
					if( this.value=="0"){
					    var errorMsg = '请选择学历';
                        $parent.append('<span class="formtips onError">'+errorMsg+'</span>');
					}
			 }
		
			
		}).keyup(function(){
		   $(this).triggerHandler("blur");
		}).focus(function(){
	  	   $(this).triggerHandler("blur");
		});//end blur
	
		//提交，最终验证。
		 $('#submit1').click(function(){
				$("#appForm :input.required").trigger('blur');
				var numError = $('#appForm .onError').length;
				if(numError>0){
					return false;
				} 
				else{
						alert("申请已提交，请等待审核结果");
				}			
		 });

		//重置
		 $('#reset1').click(function(){
				$(".formtips").remove();
				 $("#tip").html("");
		 });
})
</script>


</@html.head>
<body>

<@html.header>
	<!--请不要在此处添加内容-->
</@html.header>



<@html.content>
<div id=content>
	<!--请在此处添加页面内容-->
	
	<div id="apply_content">
<font color="red">&nbsp<@s.fielderror /></font>
<div id="apply_content_left"><div style="margin-bottom:-15px;">欢迎您申请为专家用户，请完善您的信息，可以更便捷的审核入驻！</div>
 <@s.actionerror />
<form id="appForm" class="editPart" action="${base}/user/appExpert.action" method="post" >
    <h2><span class="personal_title">基本信息</span><span class="message_requried">*为必填项</span></h2>
    <div class="personal_message">
    	<p class="text">
            <label>
               申请类型<i>&nbsp;*&nbsp;</i>
            </label>
            <input type="radio" name="exp_Type" value="1" checked/>指导专家
			<input type="radio" name="exp_Type" value="2" />评审专家
        </p>
        <p class="text">
            <label>
                姓名<i>&nbsp;*&nbsp;</i>
            </label>
            <input type="text" name="expert.expName" id="expName" class="required" />
        </p>
		
		<p class="text">
            <label>
                常用邮箱<i>&nbsp;&nbsp;</i>
            </label>
            <input type="text" name="expert.email" placeholder=""/>
        </p>
        
        <p class="text">
            <label>
                专业领域<i>&nbsp;*&nbsp;</i>
            </label>
            <!--<input type="text" name="cap_Field" placeholder=""/>-->
            <select style="width:155px; height:24px" class="required" name="exp_Field" id="fieldSelect" >
                <option value="0">请选择</option>
                <option value="1">IT</option>
                <option value="2">管理</option>
                <option value="3">经济</option>
                <option value="4">英语</option>
            </select>
        </p>
		<p class="text">
            <label>
                学历<i>&nbsp;*&nbsp;</i>
            </label>
            <select style="width:155px; height:24px" class="required" name="expert.degree" id="degreeSelect">
                <option value="0">请选择</option>
                <option value="博士后">博士后</option>
                <option value="博士">博士</option>
                <option value="硕士">硕士</option>
                <option value="本科">本科</option>
				<option value="大专">大专</option>
				<option value="其他">其他</option>
				
            </select>
        </p>
		
		<p class="text">
            <label>
                工作单位<i>&nbsp;&nbsp;</i>
            </label>
            <input type="text" name="expert.companyName" placeholder=""/>
        </p>
        
       
                
    </div>
	<h2><span class="personal_title">上传资料</span><span class="message_requried">*为必填项</span></h2>
	<div class="personal_message">
		<p class="text">
            <label>
                附件一<i>&nbsp;*&nbsp;</i>
            </label>
            <input type="file" placeholder=""/>
        </p>
		<p class="text">
            <label>
                附件二<i>&nbsp;&nbsp;</i>
            </label>
            <input type="file" placeholder=""/>
        </p>
		<p class="text">
            <label>
                附件三<i>&nbsp;&nbsp;</i>
            </label>
            <input type="file" placeholder=""/>
        </p>
	</div>
    <h2><span class="personal_title">个人简介</span><span class="message_requried">*为必填项</span></h2>
    <div class="personal_skill">
        <p class="text">
            请填写您的个人简介，让更多的用户了解你
        </p>
        <p>
            <label>
                简介<i>&nbsp;&nbsp;</i>
            </label>
            <textarea class="comment" name="expert.detail" placeholder="仅支持纯文本，最多300字">
            </textarea>
        </p>
    </div>
	
	
   

	<br>
	<br>
    <div class="input_list" style="margin-left:150px;" align="left">
	<@s.token/>
        <input id="submit1" class="input_submit" type="submit" value="提交" />
		<input id="reset1" class="input_submit cancel" type="reset" value="取消"/>
    </div>
	
    
</form>

</div>
	
	
</div>
</@html.content>



<@html.bottom>
	<!--请不要在此处添加内容-->
</@html.bottom>

</body>
</html>